import java.util.Scanner;

public class J02Scanner {
    public static void main(String[] args) {
//        int a = 8;
//        System.out.println("a = " + a);
//
        Scanner sc = new Scanner(System.in);

        //加法
        //暂停，等待用户输入，输入完成，回车，程序继续往下走
        System.out.print("请输入num1：");
        int num1 = sc.nextInt();
        System.out.print("请输入num2：");
        int num2 = sc.nextInt();

        int sum = num1 + num2;

        System.out.println("num1 = " + num1);
        System.out.println("num2 = " + num2);
        System.out.println("sum = " + sum);
    }
}
